unit uniRelRepresentante;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, QRCtrls, jpeg, QuickRpt, ExtCtrls, DB, ADODB;

type
  TfrmRelRepresentante = class(TForm)
    qrpRel: TQuickRep;
    QRBand1: TQRBand;
    QRLabel1: TQRLabel;
    QRLabel2: TQRLabel;
    qrImgCliente: TQRImage;
    qrbDetalhe: TQRBand;
    QRBand3: TQRBand;
    QRLabel11: TQRLabel;
    qrlFone: TQRLabel;
    QRLabel15: TQRLabel;
    qrlFax: TQRLabel;
    QRLabel18: TQRLabel;
    qrlEmail: TQRLabel;
    qrlCEP: TQRLabel;
    QRLabel17: TQRLabel;
    qrlEstado: TQRLabel;
    QRLabel13: TQRLabel;
    qrlCidade: TQRLabel;
    QRLabel10: TQRLabel;
    QRL: TQRLabel;
    qrlLogradouro: TQRLabel;
    QRLabel9: TQRLabel;
    qrlComplemento: TQRLabel;
    qrlIdentidade: TQRLabel;
    QRLabel8: TQRLabel;
    qrlCPF: TQRLabel;
    QRLabel5: TQRLabel;
    QRLabel3: TQRLabel;
    qrlNome: TQRLabel;
    QRBand2: TQRBand;
    QRLabel14: TQRLabel;
    QRSysData2: TQRSysData;
    QRSysData1: TQRSysData;
    qrlUsuario: TQRDBText;
    QR_Rel: TADOQuery;
    DS_Rel: TDataSource;
    QRLabel4: TQRLabel;
    qrlNumero: TQRLabel;
    procedure qrbDetalheBeforePrint(Sender: TQRCustomBand;
      var PrintBand: Boolean);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmRelRepresentante: TfrmRelRepresentante;

implementation

{$R *.dfm}

procedure TfrmRelRepresentante.qrbDetalheBeforePrint(Sender: TQRCustomBand;
  var PrintBand: Boolean);
begin
  qrlNome.Caption := QR_Rel.FieldByName('nome').AsString;
  qrlCPF.Caption := QR_Rel.FieldByName('cpf').AsString;
  qrlIdentidade.Caption := QR_Rel.FieldByName('identidade').AsString;
  qrlLogradouro.Caption := QR_Rel.FieldByName('logradouro').AsString;
  qrlComplemento.Caption := QR_Rel.FieldByName('complemento').AsString;
  qrlNumero.Caption := QR_Rel.FieldByName('numero').AsString;
  qrlCidade.Caption := QR_Rel.FieldByName('cidade').AsString;
  qrlEstado.Caption := QR_Rel.FieldByName('uf').AsString;
  qrlCEP.Caption := QR_Rel.FieldByName('cep').AsString;
  qrlFone.Caption := QR_Rel.FieldByName('fone').AsString;
  qrlFax.Caption := QR_Rel.FieldByName('fax').AsString;
  qrlEmail.Caption := QR_Rel.FieldByName('email').AsString;
end;

end.
